#!/bin/bash
# Copyrignt (c) xuzeshui.com. All Rights Reserved.
# Author: Zeshui Xu<i@xuzeshui.com>
# Created Time: 2016-09-05 18:40:31
# Last Modified: 2016-11-28 20:05:11
# File Name: feedback-usersubmit.sh
# Description: 
#host="127.0.0.1:8123"
host="test00.sz.doubimeizhi.com"
appkey="19854c206c2f4a82b33ce98872ab31aa"
salt="eb90e35a31b63415f717482d209f8aa2"
tm=`date +%s`
sessionid="807689ba1a8e4527860fa147015b88f2"

sign=`echo -n "appkey${appkey}sessionid${sessionid}time${tm}${salt}" | md5sum | awk '{print $1}'`

url="https://${host}/washroom/add?appkey=${appkey}&time=${tm}&sign=${sign}&sessionid=${sessionid}"
curl -v -k -H "host: qkleague.app.doubimeizhi.com" -d '{"name":"创维同力楼","lng":"113.38989257819", "lat":"23.049316406290", "region_code":"440306", "addr_detail":"广东省深圳市宝安区石岩街道创维工业园"}'  "${url}"
